<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>
    <script>
        window.onload=function(){
            new Vue({
                el:'#app',
                data:{
                    num:0,
                    a:10
                },
                methods:{
                    handler(){
                        this.num++;
                    }
                }
            })
        }
    </script>
</head>
<body>
    <div id="app">
        <b>{{num}}</b>
        <!-- <button v-on:click='num++'>num</button> -->
        <!-- <button v-on:click='handler'>num</button> -->
        <!-- <button v-on:click='handler(1)'>num</button> -->
        <button v-on:click='handler(a)'>num</button>

    </div>
</body>
</html>